﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Adminitrator.master"
  AutoEventWireup="true" CodeFile="List.aspx.cs" Inherits="admin_Upload_List" %>

<%@ Register Assembly="FilePickerControl" Namespace="AWS.FilePicker" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="Server">
  <h1 class="title">
    Danh sách thư mục</h1>
  <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>
        <div class="divFolder" style="padding: 0px 10px 10px 0px; margin-top: 10px; position:relative">
          <p style="margin: 0px 10px">
            <asp:HyperLink ID="linkBack" CssClass="linkBack" runat="server">Back</asp:HyperLink>
            <asp:LinkButton ID="btnAdd" CssClass="linkNew" runat="server" Text="Tạo thư mục"
              Width="130px" OnClick="btnAdd_Click" />
          </p>
          <ul id="ulFolder" runat="server">
          </ul>
          <table id="tblCreate" runat="server" visible="false">
            <tr>
              <td style="padding-left: 20px">
                Tên thư mục :
              </td>
              <td>
                <asp:TextBox ID="txtName" runat="server" />&nbsp;
                <asp:Button ID="btnOK" CssClass="button btn-ok" runat="server" Text="" OnClick="btnOK_Click" />&nbsp;
                <asp:Button ID="btnCancel" CssClass="button btn-cancel" runat="server" Text="" OnClick="btnCancel_Click" />
              </td>
            </tr>
          </table>
          <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
               <img src="../../Images/ajax-loader.gif" alt="Loadding" style="position: absolute; top: 50%; left: 50%; z-index: 1000" />
            </ProgressTemplate>
          </asp:UpdateProgress>
        </div>
      </ContentTemplate>
    </asp:UpdatePanel>
    <div class="line">
    </div>
    <h1 class="title" style="float: left">
      Danh sách tệp tin</h1>
    <p style="margin: 0px 10px 10px 10px; float: left;">
      <asp:LinkButton ID="linkUpload" CssClass="linkUpload" runat="server" Text="Upload File"
        OnClick="linkUpload_Click" />
      <asp:Label ID="lbUpload" runat="server" Text="Upload file " Visible="false" />
      <cc1:FilePicker ID="FilePicker1" runat="server" fpPopupURL="../../FilePicker/FilePicker.aspx"
        Visible="false"></cc1:FilePicker>
      <asp:Button ID="btnUploadCancel" runat="server" CssClass="button btn-cancel" Text=""
        Visible="false" OnClick="btnUploadCancel_Click" />
      <asp:Button Text="" ID="btnRefresh" CssClass="button btn-refresh" runat="server" Visible="false"
        OnClick="btnRefresh_Click" />
    </p>
    <div class="divFile clear" style="padding: 10px">
      <ul id="ulFile" runat="server">
      </ul>
    </div>
    <asp:Literal ID="lbThongBao" runat="server" />
  </div>
</asp:Content>
